package com.dayu.tcp.pojo;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class Response extends BaseMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer code;

    private Throwable cause;

    private Object result;

    @Override
    public String toString() {
        return "Response{" +
                "sequenceId=" + sequenceId +
                ", code=" + code +
                ", cause=" + cause +
                ", result=" + result +
                '}';
    }
}
